import request from '@/utils/request.js'

// 文章分类相关：
// 获取文章分类
export const artGetChannelsService = () => request.get('/my/cate/list')
// 添加
export const artAddChannelsService = (data) => request.post('/my/cate/add',
  data)
// 修改
export const artEditChannelsService = (data) => request.put('/my/cate/info',
  data)
// 删除
export const artDelChannelsService = id => request.delete('/my/cate/del', {
  params: { id },
})

// 文章管理相关
// 获取文章列表
export const artGetListService = params =>
  request.get('/my/article/list', {
    params,
  })







